package com.zk.nakedfowl.powerManager.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.zk.nakedfowl.powerManager.pojo.User;
import org.springframework.data.jpa.repository.Query;

/**
 * 数据访问接口
 * @author Administrator
 *
 */
public interface UserDao extends JpaRepository<User,String>,JpaSpecificationExecutor<User>{


   @Query(value = "update sys_user set(role=?2) where id=?1;",nativeQuery = true)
    void updateRoleById(String userId, String enname);

}
